0 CpxTRS
↳1 TrsToWeightedTrsProof (BOTH BOUNDS(ID, ID), 0 ms)
↳2 CpxWeightedTrs
↳3 TypeInferenceProof (BOTH BOUNDS(ID, ID), 0 ms)
↳4 CpxTypedWeightedTrs
↳5 CompletionProof (UPPER BOUND(ID), 0 ms)
↳6 CpxTypedWeightedCompleteTrs
↳7 NarrowingProof (BOTH BOUNDS(ID, ID), 0 ms)
↳8 CpxTypedWeightedCompleteTrs
↳9 CpxTypedWeightedTrsToRntsProof (UPPER BOUND(ID), 0 ms)
↳10 CpxRNTS
↳11 SimplificationProof (BOTH BOUNDS(ID, ID), 0 ms)
↳12 CpxRNTS
↳13 CpxRntsAnalysisOrderProof (BOTH BOUNDS(ID, ID), 0 ms)
↳14 CpxRNTS
↳15 IntTrsBoundProof (UPPER BOUND(ID), 179 ms)
↳16 CpxRNTS
↳17 IntTrsBoundProof (UPPER BOUND(ID), 52 ms)
↳18 CpxRNTS
↳19 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳20 CpxRNTS
↳21 IntTrsBoundProof (UPPER BOUND(ID), 468 ms)
↳22 CpxRNTS
↳23 IntTrsBoundProof (UPPER BOUND(ID), 100 ms)
↳24 CpxRNTS
↳25 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳26 CpxRNTS
↳27 IntTrsBoundProof (UPPER BOUND(ID), 124 ms)
↳28 CpxRNTS
↳29 IntTrsBoundProof (UPPER BOUND(ID), 9 ms)
↳30 CpxRNTS
↳31 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳32 CpxRNTS
↳33 IntTrsBoundProof (UPPER BOUND(ID), 188 ms)
↳34 CpxRNTS
↳35 IntTrsBoundProof (UPPER BOUND(ID), 7 ms)
↳36 CpxRNTS
↳37 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳38 CpxRNTS
↳39 IntTrsBoundProof (UPPER BOUND(ID), 353 ms)
↳40 CpxRNTS
↳41 IntTrsBoundProof (UPPER BOUND(ID), 214 ms)
↳42 CpxRNTS
↳43 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳44 CpxRNTS
↳45 IntTrsBoundProof (UPPER BOUND(ID), 1904 ms)
↳46 CpxRNTS
↳47 IntTrsBoundProof (UPPER BOUND(ID), 276 ms)
↳48 CpxRNTS
↳49 ResultPropagationProof (UPPER BOUND(ID), 0 ms)
↳50 CpxRNTS
↳51 IntTrsBoundProof (UPPER BOUND(ID), 692 ms)
↳52 CpxRNTS
↳53 IntTrsBoundProof (UPPER BOUND(ID), 3 ms)
↳54 CpxRNTS
↳55 FinalProof (⇔, 0 ms)
↳56 BOUNDS(1, n^3)
null(nil) → true
null(add(n, x)) → false
tail(add(n, x)) → x
tail(nil) → nil
head(add(n, x)) → n
app(nil, y) → y
app(add(n, x), y) → add(n, app(x, y))
reverse(nil) → nil
reverse(add(n, x)) → app(reverse(x), add(n, nil))
shuffle(x) → shuff(x, nil)
shuff(x, y) → if(null(x), x, y, app(y, add(head(x), nil)))
if(true, x, y, z) → y
if(false, x, y, z) → shuff(reverse(tail(x)), z)
null(nil) → true [1]
null(add(n, x)) → false [1]
tail(add(n, x)) → x [1]
tail(nil) → nil [1]
head(add(n, x)) → n [1]
app(nil, y) → y [1]
app(add(n, x), y) → add(n, app(x, y)) [1]
reverse(nil) → nil [1]
reverse(add(n, x)) → app(reverse(x), add(n, nil)) [1]
shuffle(x) → shuff(x, nil) [1]
shuff(x, y) → if(null(x), x, y, app(y, add(head(x), nil))) [1]
if(true, x, y, z) → y [1]
if(false, x, y, z) → shuff(reverse(tail(x)), z) [1]
null(nil) → true [1]
null(add(n, x)) → false [1]
tail(add(n, x)) → x [1]
tail(nil) → nil [1]
head(add(n, x)) → n [1]
app(nil, y) → y [1]
app(add(n, x), y) → add(n, app(x, y)) [1]
reverse(nil) → nil [1]
reverse(add(n, x)) → app(reverse(x), add(n, nil)) [1]
shuffle(x) → shuff(x, nil) [1]
shuff(x, y) → if(null(x), x, y, app(y, add(head(x), nil))) [1]
if(true, x, y, z) → y [1]
if(false, x, y, z) → shuff(reverse(tail(x)), z) [1]
null :: nil:add → true:false nil :: nil:add true :: true:false add :: head → nil:add → nil:add false :: true:false tail :: nil:add → nil:add head :: nil:add → head app :: nil:add → nil:add → nil:add reverse :: nil:add → nil:add shuffle :: nil:add → nil:add shuff :: nil:add → nil:add → nil:add if :: true:false → nil:add → nil:add → nil:add → nil:add |
(a) The obligation is a constructor system where every type has a constant constructor,
(b) The following defined symbols do not have to be completely defined, as they can never occur inside other defined symbols:
shuffle
shuff
if
null
app
head
reverse
tail
head(v0) → const [0]
const
Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules:
The TRS has the following type information:
Rewrite Strategy: INNERMOST |
Runtime Complexity Weighted TRS with Types. The TRS R consists of the following rules:
The TRS has the following type information:
Rewrite Strategy: INNERMOST |
nil => 0
true => 1
false => 0
const => 0
app(z', z'') -{ 1 }→ y :|: z'' = y, y >= 0, z' = 0
app(z', z'') -{ 1 }→ 1 + n + app(x, y) :|: n >= 0, z'' = y, z' = 1 + n + x, x >= 0, y >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: v0 >= 0, z' = v0
if(z', z'', z1, z2) -{ 1 }→ y :|: z1 = y, z >= 0, z2 = z, x >= 0, y >= 0, z'' = x, z' = 1
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(x1), z) :|: z1 = y, x1 >= 0, z >= 0, z2 = z, y >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(0), z) :|: z'' = 0, z1 = y, z >= 0, z2 = z, y >= 0, z' = 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 2 }→ app(app(reverse(x'), 1 + n' + 0), 1 + n + 0) :|: n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 2 }→ app(0, 1 + n + 0) :|: n >= 0, z' = 1 + n + 0
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 2 }→ if(1, 0, y, app(y, 1 + 0 + 0)) :|: z'' = y, y >= 0, z' = 0
shuff(z', z'') -{ 3 }→ if(0, 1 + n'' + x'', y, app(y, 1 + n'' + 0)) :|: z' = 1 + n'' + x'', z'' = y, y >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 2 }→ if(0, 1 + n'' + x'', y, app(y, 1 + 0 + 0)) :|: z' = 1 + n'' + x'', z'' = y, y >= 0, n'' >= 0, x'' >= 0
shuffle(z') -{ 1 }→ shuff(x, 0) :|: z' = x, x >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
app(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
app(z', z'') -{ 1 }→ 1 + n + app(x, z'') :|: n >= 0, z' = 1 + n + x, x >= 0, z'' >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: z' >= 0
if(z', z'', z1, z2) -{ 1 }→ z1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(x1), z2) :|: x1 >= 0, z2 >= 0, z1 >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(0), z2) :|: z'' = 0, z2 >= 0, z1 >= 0, z' = 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 2 }→ app(app(reverse(x'), 1 + n' + 0), 1 + n + 0) :|: n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 2 }→ app(0, 1 + (z' - 1) + 0) :|: z' - 1 >= 0
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 2 }→ if(1, 0, z'', app(z'', 1 + 0 + 0)) :|: z'' >= 0, z' = 0
shuff(z', z'') -{ 3 }→ if(0, 1 + n'' + x'', z'', app(z'', 1 + n'' + 0)) :|: z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 2 }→ if(0, 1 + n'' + x'', z'', app(z'', 1 + 0 + 0)) :|: z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuffle(z') -{ 1 }→ shuff(z', 0) :|: z' >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
{ head } { app } { null } { tail } { reverse } { shuff, if } { shuffle } |
app(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
app(z', z'') -{ 1 }→ 1 + n + app(x, z'') :|: n >= 0, z' = 1 + n + x, x >= 0, z'' >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: z' >= 0
if(z', z'', z1, z2) -{ 1 }→ z1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(x1), z2) :|: x1 >= 0, z2 >= 0, z1 >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(0), z2) :|: z'' = 0, z2 >= 0, z1 >= 0, z' = 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 2 }→ app(app(reverse(x'), 1 + n' + 0), 1 + n + 0) :|: n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 2 }→ app(0, 1 + (z' - 1) + 0) :|: z' - 1 >= 0
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 2 }→ if(1, 0, z'', app(z'', 1 + 0 + 0)) :|: z'' >= 0, z' = 0
shuff(z', z'') -{ 3 }→ if(0, 1 + n'' + x'', z'', app(z'', 1 + n'' + 0)) :|: z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 2 }→ if(0, 1 + n'' + x'', z'', app(z'', 1 + 0 + 0)) :|: z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuffle(z') -{ 1 }→ shuff(z', 0) :|: z' >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
app(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
app(z', z'') -{ 1 }→ 1 + n + app(x, z'') :|: n >= 0, z' = 1 + n + x, x >= 0, z'' >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: z' >= 0
if(z', z'', z1, z2) -{ 1 }→ z1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(x1), z2) :|: x1 >= 0, z2 >= 0, z1 >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(0), z2) :|: z'' = 0, z2 >= 0, z1 >= 0, z' = 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 2 }→ app(app(reverse(x'), 1 + n' + 0), 1 + n + 0) :|: n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 2 }→ app(0, 1 + (z' - 1) + 0) :|: z' - 1 >= 0
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 2 }→ if(1, 0, z'', app(z'', 1 + 0 + 0)) :|: z'' >= 0, z' = 0
shuff(z', z'') -{ 3 }→ if(0, 1 + n'' + x'', z'', app(z'', 1 + n'' + 0)) :|: z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 2 }→ if(0, 1 + n'' + x'', z'', app(z'', 1 + 0 + 0)) :|: z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuffle(z') -{ 1 }→ shuff(z', 0) :|: z' >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
head: runtime: ?, size: O(n1) [z'] |
app(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
app(z', z'') -{ 1 }→ 1 + n + app(x, z'') :|: n >= 0, z' = 1 + n + x, x >= 0, z'' >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: z' >= 0
if(z', z'', z1, z2) -{ 1 }→ z1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(x1), z2) :|: x1 >= 0, z2 >= 0, z1 >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(0), z2) :|: z'' = 0, z2 >= 0, z1 >= 0, z' = 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 2 }→ app(app(reverse(x'), 1 + n' + 0), 1 + n + 0) :|: n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 2 }→ app(0, 1 + (z' - 1) + 0) :|: z' - 1 >= 0
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 2 }→ if(1, 0, z'', app(z'', 1 + 0 + 0)) :|: z'' >= 0, z' = 0
shuff(z', z'') -{ 3 }→ if(0, 1 + n'' + x'', z'', app(z'', 1 + n'' + 0)) :|: z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 2 }→ if(0, 1 + n'' + x'', z'', app(z'', 1 + 0 + 0)) :|: z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuffle(z') -{ 1 }→ shuff(z', 0) :|: z' >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
head: runtime: O(1) [1], size: O(n1) [z'] |
app(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
app(z', z'') -{ 1 }→ 1 + n + app(x, z'') :|: n >= 0, z' = 1 + n + x, x >= 0, z'' >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: z' >= 0
if(z', z'', z1, z2) -{ 1 }→ z1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(x1), z2) :|: x1 >= 0, z2 >= 0, z1 >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(0), z2) :|: z'' = 0, z2 >= 0, z1 >= 0, z' = 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 2 }→ app(app(reverse(x'), 1 + n' + 0), 1 + n + 0) :|: n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 2 }→ app(0, 1 + (z' - 1) + 0) :|: z' - 1 >= 0
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 2 }→ if(1, 0, z'', app(z'', 1 + 0 + 0)) :|: z'' >= 0, z' = 0
shuff(z', z'') -{ 3 }→ if(0, 1 + n'' + x'', z'', app(z'', 1 + n'' + 0)) :|: z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 2 }→ if(0, 1 + n'' + x'', z'', app(z'', 1 + 0 + 0)) :|: z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuffle(z') -{ 1 }→ shuff(z', 0) :|: z' >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
head: runtime: O(1) [1], size: O(n1) [z'] |
app(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
app(z', z'') -{ 1 }→ 1 + n + app(x, z'') :|: n >= 0, z' = 1 + n + x, x >= 0, z'' >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: z' >= 0
if(z', z'', z1, z2) -{ 1 }→ z1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(x1), z2) :|: x1 >= 0, z2 >= 0, z1 >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(0), z2) :|: z'' = 0, z2 >= 0, z1 >= 0, z' = 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 2 }→ app(app(reverse(x'), 1 + n' + 0), 1 + n + 0) :|: n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 2 }→ app(0, 1 + (z' - 1) + 0) :|: z' - 1 >= 0
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 2 }→ if(1, 0, z'', app(z'', 1 + 0 + 0)) :|: z'' >= 0, z' = 0
shuff(z', z'') -{ 3 }→ if(0, 1 + n'' + x'', z'', app(z'', 1 + n'' + 0)) :|: z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 2 }→ if(0, 1 + n'' + x'', z'', app(z'', 1 + 0 + 0)) :|: z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuffle(z') -{ 1 }→ shuff(z', 0) :|: z' >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
head: runtime: O(1) [1], size: O(n1) [z'] app: runtime: ?, size: O(n1) [z' + z''] |
app(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
app(z', z'') -{ 1 }→ 1 + n + app(x, z'') :|: n >= 0, z' = 1 + n + x, x >= 0, z'' >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: z' >= 0
if(z', z'', z1, z2) -{ 1 }→ z1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(x1), z2) :|: x1 >= 0, z2 >= 0, z1 >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(0), z2) :|: z'' = 0, z2 >= 0, z1 >= 0, z' = 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 2 }→ app(app(reverse(x'), 1 + n' + 0), 1 + n + 0) :|: n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 2 }→ app(0, 1 + (z' - 1) + 0) :|: z' - 1 >= 0
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 2 }→ if(1, 0, z'', app(z'', 1 + 0 + 0)) :|: z'' >= 0, z' = 0
shuff(z', z'') -{ 3 }→ if(0, 1 + n'' + x'', z'', app(z'', 1 + n'' + 0)) :|: z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 2 }→ if(0, 1 + n'' + x'', z'', app(z'', 1 + 0 + 0)) :|: z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuffle(z') -{ 1 }→ shuff(z', 0) :|: z' >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
head: runtime: O(1) [1], size: O(n1) [z'] app: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] |
app(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
app(z', z'') -{ 2 + x }→ 1 + n + s :|: s >= 0, s <= 1 * x + 1 * z'', n >= 0, z' = 1 + n + x, x >= 0, z'' >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: z' >= 0
if(z', z'', z1, z2) -{ 1 }→ z1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(x1), z2) :|: x1 >= 0, z2 >= 0, z1 >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(0), z2) :|: z'' = 0, z2 >= 0, z1 >= 0, z' = 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 3 }→ s' :|: s' >= 0, s' <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
reverse(z') -{ 2 }→ app(app(reverse(x'), 1 + n' + 0), 1 + n + 0) :|: n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 3 + z'' }→ if(1, 0, z'', s'') :|: s'' >= 0, s'' <= 1 * z'' + 1 * (1 + 0 + 0), z'' >= 0, z' = 0
shuff(z', z'') -{ 4 + z'' }→ if(0, 1 + n'' + x'', z'', s1) :|: s1 >= 0, s1 <= 1 * z'' + 1 * (1 + n'' + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 3 + z'' }→ if(0, 1 + n'' + x'', z'', s2) :|: s2 >= 0, s2 <= 1 * z'' + 1 * (1 + 0 + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuffle(z') -{ 1 }→ shuff(z', 0) :|: z' >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
head: runtime: O(1) [1], size: O(n1) [z'] app: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] |
app(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
app(z', z'') -{ 2 + x }→ 1 + n + s :|: s >= 0, s <= 1 * x + 1 * z'', n >= 0, z' = 1 + n + x, x >= 0, z'' >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: z' >= 0
if(z', z'', z1, z2) -{ 1 }→ z1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(x1), z2) :|: x1 >= 0, z2 >= 0, z1 >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(0), z2) :|: z'' = 0, z2 >= 0, z1 >= 0, z' = 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 3 }→ s' :|: s' >= 0, s' <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
reverse(z') -{ 2 }→ app(app(reverse(x'), 1 + n' + 0), 1 + n + 0) :|: n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 3 + z'' }→ if(1, 0, z'', s'') :|: s'' >= 0, s'' <= 1 * z'' + 1 * (1 + 0 + 0), z'' >= 0, z' = 0
shuff(z', z'') -{ 4 + z'' }→ if(0, 1 + n'' + x'', z'', s1) :|: s1 >= 0, s1 <= 1 * z'' + 1 * (1 + n'' + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 3 + z'' }→ if(0, 1 + n'' + x'', z'', s2) :|: s2 >= 0, s2 <= 1 * z'' + 1 * (1 + 0 + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuffle(z') -{ 1 }→ shuff(z', 0) :|: z' >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
head: runtime: O(1) [1], size: O(n1) [z'] app: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: ?, size: O(1) [1] |
app(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
app(z', z'') -{ 2 + x }→ 1 + n + s :|: s >= 0, s <= 1 * x + 1 * z'', n >= 0, z' = 1 + n + x, x >= 0, z'' >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: z' >= 0
if(z', z'', z1, z2) -{ 1 }→ z1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(x1), z2) :|: x1 >= 0, z2 >= 0, z1 >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(0), z2) :|: z'' = 0, z2 >= 0, z1 >= 0, z' = 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 3 }→ s' :|: s' >= 0, s' <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
reverse(z') -{ 2 }→ app(app(reverse(x'), 1 + n' + 0), 1 + n + 0) :|: n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 3 + z'' }→ if(1, 0, z'', s'') :|: s'' >= 0, s'' <= 1 * z'' + 1 * (1 + 0 + 0), z'' >= 0, z' = 0
shuff(z', z'') -{ 4 + z'' }→ if(0, 1 + n'' + x'', z'', s1) :|: s1 >= 0, s1 <= 1 * z'' + 1 * (1 + n'' + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 3 + z'' }→ if(0, 1 + n'' + x'', z'', s2) :|: s2 >= 0, s2 <= 1 * z'' + 1 * (1 + 0 + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuffle(z') -{ 1 }→ shuff(z', 0) :|: z' >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
head: runtime: O(1) [1], size: O(n1) [z'] app: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] |
app(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
app(z', z'') -{ 2 + x }→ 1 + n + s :|: s >= 0, s <= 1 * x + 1 * z'', n >= 0, z' = 1 + n + x, x >= 0, z'' >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: z' >= 0
if(z', z'', z1, z2) -{ 1 }→ z1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(x1), z2) :|: x1 >= 0, z2 >= 0, z1 >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(0), z2) :|: z'' = 0, z2 >= 0, z1 >= 0, z' = 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 3 }→ s' :|: s' >= 0, s' <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
reverse(z') -{ 2 }→ app(app(reverse(x'), 1 + n' + 0), 1 + n + 0) :|: n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 3 + z'' }→ if(1, 0, z'', s'') :|: s'' >= 0, s'' <= 1 * z'' + 1 * (1 + 0 + 0), z'' >= 0, z' = 0
shuff(z', z'') -{ 4 + z'' }→ if(0, 1 + n'' + x'', z'', s1) :|: s1 >= 0, s1 <= 1 * z'' + 1 * (1 + n'' + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 3 + z'' }→ if(0, 1 + n'' + x'', z'', s2) :|: s2 >= 0, s2 <= 1 * z'' + 1 * (1 + 0 + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuffle(z') -{ 1 }→ shuff(z', 0) :|: z' >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
head: runtime: O(1) [1], size: O(n1) [z'] app: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] |
app(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
app(z', z'') -{ 2 + x }→ 1 + n + s :|: s >= 0, s <= 1 * x + 1 * z'', n >= 0, z' = 1 + n + x, x >= 0, z'' >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: z' >= 0
if(z', z'', z1, z2) -{ 1 }→ z1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(x1), z2) :|: x1 >= 0, z2 >= 0, z1 >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(0), z2) :|: z'' = 0, z2 >= 0, z1 >= 0, z' = 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 3 }→ s' :|: s' >= 0, s' <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
reverse(z') -{ 2 }→ app(app(reverse(x'), 1 + n' + 0), 1 + n + 0) :|: n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 3 + z'' }→ if(1, 0, z'', s'') :|: s'' >= 0, s'' <= 1 * z'' + 1 * (1 + 0 + 0), z'' >= 0, z' = 0
shuff(z', z'') -{ 4 + z'' }→ if(0, 1 + n'' + x'', z'', s1) :|: s1 >= 0, s1 <= 1 * z'' + 1 * (1 + n'' + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 3 + z'' }→ if(0, 1 + n'' + x'', z'', s2) :|: s2 >= 0, s2 <= 1 * z'' + 1 * (1 + 0 + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuffle(z') -{ 1 }→ shuff(z', 0) :|: z' >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
head: runtime: O(1) [1], size: O(n1) [z'] app: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] tail: runtime: ?, size: O(n1) [z'] |
app(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
app(z', z'') -{ 2 + x }→ 1 + n + s :|: s >= 0, s <= 1 * x + 1 * z'', n >= 0, z' = 1 + n + x, x >= 0, z'' >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: z' >= 0
if(z', z'', z1, z2) -{ 1 }→ z1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(x1), z2) :|: x1 >= 0, z2 >= 0, z1 >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(0), z2) :|: z'' = 0, z2 >= 0, z1 >= 0, z' = 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 3 }→ s' :|: s' >= 0, s' <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
reverse(z') -{ 2 }→ app(app(reverse(x'), 1 + n' + 0), 1 + n + 0) :|: n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 3 + z'' }→ if(1, 0, z'', s'') :|: s'' >= 0, s'' <= 1 * z'' + 1 * (1 + 0 + 0), z'' >= 0, z' = 0
shuff(z', z'') -{ 4 + z'' }→ if(0, 1 + n'' + x'', z'', s1) :|: s1 >= 0, s1 <= 1 * z'' + 1 * (1 + n'' + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 3 + z'' }→ if(0, 1 + n'' + x'', z'', s2) :|: s2 >= 0, s2 <= 1 * z'' + 1 * (1 + 0 + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuffle(z') -{ 1 }→ shuff(z', 0) :|: z' >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
head: runtime: O(1) [1], size: O(n1) [z'] app: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] tail: runtime: O(1) [1], size: O(n1) [z'] |
app(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
app(z', z'') -{ 2 + x }→ 1 + n + s :|: s >= 0, s <= 1 * x + 1 * z'', n >= 0, z' = 1 + n + x, x >= 0, z'' >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: z' >= 0
if(z', z'', z1, z2) -{ 1 }→ z1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(x1), z2) :|: x1 >= 0, z2 >= 0, z1 >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(0), z2) :|: z'' = 0, z2 >= 0, z1 >= 0, z' = 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 3 }→ s' :|: s' >= 0, s' <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
reverse(z') -{ 2 }→ app(app(reverse(x'), 1 + n' + 0), 1 + n + 0) :|: n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 3 + z'' }→ if(1, 0, z'', s'') :|: s'' >= 0, s'' <= 1 * z'' + 1 * (1 + 0 + 0), z'' >= 0, z' = 0
shuff(z', z'') -{ 4 + z'' }→ if(0, 1 + n'' + x'', z'', s1) :|: s1 >= 0, s1 <= 1 * z'' + 1 * (1 + n'' + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 3 + z'' }→ if(0, 1 + n'' + x'', z'', s2) :|: s2 >= 0, s2 <= 1 * z'' + 1 * (1 + 0 + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuffle(z') -{ 1 }→ shuff(z', 0) :|: z' >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
head: runtime: O(1) [1], size: O(n1) [z'] app: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] tail: runtime: O(1) [1], size: O(n1) [z'] |
app(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
app(z', z'') -{ 2 + x }→ 1 + n + s :|: s >= 0, s <= 1 * x + 1 * z'', n >= 0, z' = 1 + n + x, x >= 0, z'' >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: z' >= 0
if(z', z'', z1, z2) -{ 1 }→ z1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(x1), z2) :|: x1 >= 0, z2 >= 0, z1 >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(0), z2) :|: z'' = 0, z2 >= 0, z1 >= 0, z' = 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 3 }→ s' :|: s' >= 0, s' <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
reverse(z') -{ 2 }→ app(app(reverse(x'), 1 + n' + 0), 1 + n + 0) :|: n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 3 + z'' }→ if(1, 0, z'', s'') :|: s'' >= 0, s'' <= 1 * z'' + 1 * (1 + 0 + 0), z'' >= 0, z' = 0
shuff(z', z'') -{ 4 + z'' }→ if(0, 1 + n'' + x'', z'', s1) :|: s1 >= 0, s1 <= 1 * z'' + 1 * (1 + n'' + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 3 + z'' }→ if(0, 1 + n'' + x'', z'', s2) :|: s2 >= 0, s2 <= 1 * z'' + 1 * (1 + 0 + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuffle(z') -{ 1 }→ shuff(z', 0) :|: z' >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
head: runtime: O(1) [1], size: O(n1) [z'] app: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] tail: runtime: O(1) [1], size: O(n1) [z'] reverse: runtime: ?, size: O(n1) [z'] |
app(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
app(z', z'') -{ 2 + x }→ 1 + n + s :|: s >= 0, s <= 1 * x + 1 * z'', n >= 0, z' = 1 + n + x, x >= 0, z'' >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: z' >= 0
if(z', z'', z1, z2) -{ 1 }→ z1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(x1), z2) :|: x1 >= 0, z2 >= 0, z1 >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 2 }→ shuff(reverse(0), z2) :|: z'' = 0, z2 >= 0, z1 >= 0, z' = 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 3 }→ s' :|: s' >= 0, s' <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
reverse(z') -{ 2 }→ app(app(reverse(x'), 1 + n' + 0), 1 + n + 0) :|: n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 3 + z'' }→ if(1, 0, z'', s'') :|: s'' >= 0, s'' <= 1 * z'' + 1 * (1 + 0 + 0), z'' >= 0, z' = 0
shuff(z', z'') -{ 4 + z'' }→ if(0, 1 + n'' + x'', z'', s1) :|: s1 >= 0, s1 <= 1 * z'' + 1 * (1 + n'' + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 3 + z'' }→ if(0, 1 + n'' + x'', z'', s2) :|: s2 >= 0, s2 <= 1 * z'' + 1 * (1 + 0 + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuffle(z') -{ 1 }→ shuff(z', 0) :|: z' >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
head: runtime: O(1) [1], size: O(n1) [z'] app: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] tail: runtime: O(1) [1], size: O(n1) [z'] reverse: runtime: O(n2) [4 + 3·z' + 2·z'2], size: O(n1) [z'] |
app(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
app(z', z'') -{ 2 + x }→ 1 + n + s :|: s >= 0, s <= 1 * x + 1 * z'', n >= 0, z' = 1 + n + x, x >= 0, z'' >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: z' >= 0
if(z', z'', z1, z2) -{ 1 }→ z1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1, z2) -{ 6 + 3·x1 + 2·x12 }→ shuff(s6, z2) :|: s6 >= 0, s6 <= 1 * x1, x1 >= 0, z2 >= 0, z1 >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 6 }→ shuff(s7, z2) :|: s7 >= 0, s7 <= 1 * 0, z'' = 0, z2 >= 0, z1 >= 0, z' = 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 3 }→ s' :|: s' >= 0, s' <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
reverse(z') -{ 8 + s3 + s4 + 3·x' + 2·x'2 }→ s5 :|: s3 >= 0, s3 <= 1 * x', s4 >= 0, s4 <= 1 * s3 + 1 * (1 + n' + 0), s5 >= 0, s5 <= 1 * s4 + 1 * (1 + n + 0), n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 3 + z'' }→ if(1, 0, z'', s'') :|: s'' >= 0, s'' <= 1 * z'' + 1 * (1 + 0 + 0), z'' >= 0, z' = 0
shuff(z', z'') -{ 4 + z'' }→ if(0, 1 + n'' + x'', z'', s1) :|: s1 >= 0, s1 <= 1 * z'' + 1 * (1 + n'' + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 3 + z'' }→ if(0, 1 + n'' + x'', z'', s2) :|: s2 >= 0, s2 <= 1 * z'' + 1 * (1 + 0 + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuffle(z') -{ 1 }→ shuff(z', 0) :|: z' >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
head: runtime: O(1) [1], size: O(n1) [z'] app: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] tail: runtime: O(1) [1], size: O(n1) [z'] reverse: runtime: O(n2) [4 + 3·z' + 2·z'2], size: O(n1) [z'] |
app(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
app(z', z'') -{ 2 + x }→ 1 + n + s :|: s >= 0, s <= 1 * x + 1 * z'', n >= 0, z' = 1 + n + x, x >= 0, z'' >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: z' >= 0
if(z', z'', z1, z2) -{ 1 }→ z1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1, z2) -{ 6 + 3·x1 + 2·x12 }→ shuff(s6, z2) :|: s6 >= 0, s6 <= 1 * x1, x1 >= 0, z2 >= 0, z1 >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 6 }→ shuff(s7, z2) :|: s7 >= 0, s7 <= 1 * 0, z'' = 0, z2 >= 0, z1 >= 0, z' = 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 3 }→ s' :|: s' >= 0, s' <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
reverse(z') -{ 8 + s3 + s4 + 3·x' + 2·x'2 }→ s5 :|: s3 >= 0, s3 <= 1 * x', s4 >= 0, s4 <= 1 * s3 + 1 * (1 + n' + 0), s5 >= 0, s5 <= 1 * s4 + 1 * (1 + n + 0), n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 3 + z'' }→ if(1, 0, z'', s'') :|: s'' >= 0, s'' <= 1 * z'' + 1 * (1 + 0 + 0), z'' >= 0, z' = 0
shuff(z', z'') -{ 4 + z'' }→ if(0, 1 + n'' + x'', z'', s1) :|: s1 >= 0, s1 <= 1 * z'' + 1 * (1 + n'' + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 3 + z'' }→ if(0, 1 + n'' + x'', z'', s2) :|: s2 >= 0, s2 <= 1 * z'' + 1 * (1 + 0 + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuffle(z') -{ 1 }→ shuff(z', 0) :|: z' >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
head: runtime: O(1) [1], size: O(n1) [z'] app: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] tail: runtime: O(1) [1], size: O(n1) [z'] reverse: runtime: O(n2) [4 + 3·z' + 2·z'2], size: O(n1) [z'] shuff: runtime: ?, size: O(n2) [z'2 + z''] if: runtime: ?, size: O(n2) [z''2 + z1 + 2·z2] |
app(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
app(z', z'') -{ 2 + x }→ 1 + n + s :|: s >= 0, s <= 1 * x + 1 * z'', n >= 0, z' = 1 + n + x, x >= 0, z'' >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: z' >= 0
if(z', z'', z1, z2) -{ 1 }→ z1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1
if(z', z'', z1, z2) -{ 6 + 3·x1 + 2·x12 }→ shuff(s6, z2) :|: s6 >= 0, s6 <= 1 * x1, x1 >= 0, z2 >= 0, z1 >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 6 }→ shuff(s7, z2) :|: s7 >= 0, s7 <= 1 * 0, z'' = 0, z2 >= 0, z1 >= 0, z' = 0
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 3 }→ s' :|: s' >= 0, s' <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
reverse(z') -{ 8 + s3 + s4 + 3·x' + 2·x'2 }→ s5 :|: s3 >= 0, s3 <= 1 * x', s4 >= 0, s4 <= 1 * s3 + 1 * (1 + n' + 0), s5 >= 0, s5 <= 1 * s4 + 1 * (1 + n + 0), n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 3 + z'' }→ if(1, 0, z'', s'') :|: s'' >= 0, s'' <= 1 * z'' + 1 * (1 + 0 + 0), z'' >= 0, z' = 0
shuff(z', z'') -{ 4 + z'' }→ if(0, 1 + n'' + x'', z'', s1) :|: s1 >= 0, s1 <= 1 * z'' + 1 * (1 + n'' + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 3 + z'' }→ if(0, 1 + n'' + x'', z'', s2) :|: s2 >= 0, s2 <= 1 * z'' + 1 * (1 + 0 + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuffle(z') -{ 1 }→ shuff(z', 0) :|: z' >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
head: runtime: O(1) [1], size: O(n1) [z'] app: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] tail: runtime: O(1) [1], size: O(n1) [z'] reverse: runtime: O(n2) [4 + 3·z' + 2·z'2], size: O(n1) [z'] shuff: runtime: O(n3) [20 + 47·z' + 6·z'·z'' + 26·z'2 + 16·z'3 + 3·z''], size: O(n2) [z'2 + z''] if: runtime: O(n3) [53 + 50·z'' + 6·z''·z2 + 28·z''2 + 16·z''3 + 6·z2], size: O(n2) [z''2 + z1 + 2·z2] |
app(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
app(z', z'') -{ 2 + x }→ 1 + n + s :|: s >= 0, s <= 1 * x + 1 * z'', n >= 0, z' = 1 + n + x, x >= 0, z'' >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: z' >= 0
if(z', z'', z1, z2) -{ 26 + 47·s6 + 6·s6·z2 + 26·s62 + 16·s63 + 3·x1 + 2·x12 + 3·z2 }→ s12 :|: s12 >= 0, s12 <= 1 * (s6 * s6) + 1 * z2, s6 >= 0, s6 <= 1 * x1, x1 >= 0, z2 >= 0, z1 >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 26 + 47·s7 + 6·s7·z2 + 26·s72 + 16·s73 + 3·z2 }→ s13 :|: s13 >= 0, s13 <= 1 * (s7 * s7) + 1 * z2, s7 >= 0, s7 <= 1 * 0, z'' = 0, z2 >= 0, z1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 1 }→ z1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 3 }→ s' :|: s' >= 0, s' <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
reverse(z') -{ 8 + s3 + s4 + 3·x' + 2·x'2 }→ s5 :|: s3 >= 0, s3 <= 1 * x', s4 >= 0, s4 <= 1 * s3 + 1 * (1 + n' + 0), s5 >= 0, s5 <= 1 * s4 + 1 * (1 + n + 0), n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 151 + 154·n'' + 6·n''·s1 + 152·n''·x'' + 48·n''·x''2 + 76·n''2 + 48·n''2·x'' + 16·n''3 + 12·s1 + 6·s1·x'' + 154·x'' + 76·x''2 + 16·x''3 + z'' }→ s10 :|: s10 >= 0, s10 <= 2 * s1 + 1 * ((1 + n'' + x'') * (1 + n'' + x'')) + 1 * z'', s1 >= 0, s1 <= 1 * z'' + 1 * (1 + n'' + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 150 + 154·n'' + 6·n''·s2 + 152·n''·x'' + 48·n''·x''2 + 76·n''2 + 48·n''2·x'' + 16·n''3 + 12·s2 + 6·s2·x'' + 154·x'' + 76·x''2 + 16·x''3 + z'' }→ s11 :|: s11 >= 0, s11 <= 2 * s2 + 1 * ((1 + n'' + x'') * (1 + n'' + x'')) + 1 * z'', s2 >= 0, s2 <= 1 * z'' + 1 * (1 + 0 + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 56 + 6·s'' + z'' }→ s9 :|: s9 >= 0, s9 <= 2 * s'' + 1 * (0 * 0) + 1 * z'', s'' >= 0, s'' <= 1 * z'' + 1 * (1 + 0 + 0), z'' >= 0, z' = 0
shuffle(z') -{ 21 + 47·z' + 26·z'2 + 16·z'3 }→ s8 :|: s8 >= 0, s8 <= 1 * (z' * z') + 1 * 0, z' >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
head: runtime: O(1) [1], size: O(n1) [z'] app: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] tail: runtime: O(1) [1], size: O(n1) [z'] reverse: runtime: O(n2) [4 + 3·z' + 2·z'2], size: O(n1) [z'] shuff: runtime: O(n3) [20 + 47·z' + 6·z'·z'' + 26·z'2 + 16·z'3 + 3·z''], size: O(n2) [z'2 + z''] if: runtime: O(n3) [53 + 50·z'' + 6·z''·z2 + 28·z''2 + 16·z''3 + 6·z2], size: O(n2) [z''2 + z1 + 2·z2] |
app(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
app(z', z'') -{ 2 + x }→ 1 + n + s :|: s >= 0, s <= 1 * x + 1 * z'', n >= 0, z' = 1 + n + x, x >= 0, z'' >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: z' >= 0
if(z', z'', z1, z2) -{ 26 + 47·s6 + 6·s6·z2 + 26·s62 + 16·s63 + 3·x1 + 2·x12 + 3·z2 }→ s12 :|: s12 >= 0, s12 <= 1 * (s6 * s6) + 1 * z2, s6 >= 0, s6 <= 1 * x1, x1 >= 0, z2 >= 0, z1 >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 26 + 47·s7 + 6·s7·z2 + 26·s72 + 16·s73 + 3·z2 }→ s13 :|: s13 >= 0, s13 <= 1 * (s7 * s7) + 1 * z2, s7 >= 0, s7 <= 1 * 0, z'' = 0, z2 >= 0, z1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 1 }→ z1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 3 }→ s' :|: s' >= 0, s' <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
reverse(z') -{ 8 + s3 + s4 + 3·x' + 2·x'2 }→ s5 :|: s3 >= 0, s3 <= 1 * x', s4 >= 0, s4 <= 1 * s3 + 1 * (1 + n' + 0), s5 >= 0, s5 <= 1 * s4 + 1 * (1 + n + 0), n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 151 + 154·n'' + 6·n''·s1 + 152·n''·x'' + 48·n''·x''2 + 76·n''2 + 48·n''2·x'' + 16·n''3 + 12·s1 + 6·s1·x'' + 154·x'' + 76·x''2 + 16·x''3 + z'' }→ s10 :|: s10 >= 0, s10 <= 2 * s1 + 1 * ((1 + n'' + x'') * (1 + n'' + x'')) + 1 * z'', s1 >= 0, s1 <= 1 * z'' + 1 * (1 + n'' + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 150 + 154·n'' + 6·n''·s2 + 152·n''·x'' + 48·n''·x''2 + 76·n''2 + 48·n''2·x'' + 16·n''3 + 12·s2 + 6·s2·x'' + 154·x'' + 76·x''2 + 16·x''3 + z'' }→ s11 :|: s11 >= 0, s11 <= 2 * s2 + 1 * ((1 + n'' + x'') * (1 + n'' + x'')) + 1 * z'', s2 >= 0, s2 <= 1 * z'' + 1 * (1 + 0 + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 56 + 6·s'' + z'' }→ s9 :|: s9 >= 0, s9 <= 2 * s'' + 1 * (0 * 0) + 1 * z'', s'' >= 0, s'' <= 1 * z'' + 1 * (1 + 0 + 0), z'' >= 0, z' = 0
shuffle(z') -{ 21 + 47·z' + 26·z'2 + 16·z'3 }→ s8 :|: s8 >= 0, s8 <= 1 * (z' * z') + 1 * 0, z' >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
head: runtime: O(1) [1], size: O(n1) [z'] app: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] tail: runtime: O(1) [1], size: O(n1) [z'] reverse: runtime: O(n2) [4 + 3·z' + 2·z'2], size: O(n1) [z'] shuff: runtime: O(n3) [20 + 47·z' + 6·z'·z'' + 26·z'2 + 16·z'3 + 3·z''], size: O(n2) [z'2 + z''] if: runtime: O(n3) [53 + 50·z'' + 6·z''·z2 + 28·z''2 + 16·z''3 + 6·z2], size: O(n2) [z''2 + z1 + 2·z2] shuffle: runtime: ?, size: O(n2) [z'2] |
app(z', z'') -{ 1 }→ z'' :|: z'' >= 0, z' = 0
app(z', z'') -{ 2 + x }→ 1 + n + s :|: s >= 0, s <= 1 * x + 1 * z'', n >= 0, z' = 1 + n + x, x >= 0, z'' >= 0
head(z') -{ 1 }→ n :|: n >= 0, z' = 1 + n + x, x >= 0
head(z') -{ 0 }→ 0 :|: z' >= 0
if(z', z'', z1, z2) -{ 26 + 47·s6 + 6·s6·z2 + 26·s62 + 16·s63 + 3·x1 + 2·x12 + 3·z2 }→ s12 :|: s12 >= 0, s12 <= 1 * (s6 * s6) + 1 * z2, s6 >= 0, s6 <= 1 * x1, x1 >= 0, z2 >= 0, z1 >= 0, z'' = 1 + n1 + x1, n1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 26 + 47·s7 + 6·s7·z2 + 26·s72 + 16·s73 + 3·z2 }→ s13 :|: s13 >= 0, s13 <= 1 * (s7 * s7) + 1 * z2, s7 >= 0, s7 <= 1 * 0, z'' = 0, z2 >= 0, z1 >= 0, z' = 0
if(z', z'', z1, z2) -{ 1 }→ z1 :|: z2 >= 0, z'' >= 0, z1 >= 0, z' = 1
null(z') -{ 1 }→ 1 :|: z' = 0
null(z') -{ 1 }→ 0 :|: n >= 0, z' = 1 + n + x, x >= 0
reverse(z') -{ 3 }→ s' :|: s' >= 0, s' <= 1 * 0 + 1 * (1 + (z' - 1) + 0), z' - 1 >= 0
reverse(z') -{ 8 + s3 + s4 + 3·x' + 2·x'2 }→ s5 :|: s3 >= 0, s3 <= 1 * x', s4 >= 0, s4 <= 1 * s3 + 1 * (1 + n' + 0), s5 >= 0, s5 <= 1 * s4 + 1 * (1 + n + 0), n >= 0, x' >= 0, n' >= 0, z' = 1 + n + (1 + n' + x')
reverse(z') -{ 1 }→ 0 :|: z' = 0
shuff(z', z'') -{ 151 + 154·n'' + 6·n''·s1 + 152·n''·x'' + 48·n''·x''2 + 76·n''2 + 48·n''2·x'' + 16·n''3 + 12·s1 + 6·s1·x'' + 154·x'' + 76·x''2 + 16·x''3 + z'' }→ s10 :|: s10 >= 0, s10 <= 2 * s1 + 1 * ((1 + n'' + x'') * (1 + n'' + x'')) + 1 * z'', s1 >= 0, s1 <= 1 * z'' + 1 * (1 + n'' + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 150 + 154·n'' + 6·n''·s2 + 152·n''·x'' + 48·n''·x''2 + 76·n''2 + 48·n''2·x'' + 16·n''3 + 12·s2 + 6·s2·x'' + 154·x'' + 76·x''2 + 16·x''3 + z'' }→ s11 :|: s11 >= 0, s11 <= 2 * s2 + 1 * ((1 + n'' + x'') * (1 + n'' + x'')) + 1 * z'', s2 >= 0, s2 <= 1 * z'' + 1 * (1 + 0 + 0), z' = 1 + n'' + x'', z'' >= 0, n'' >= 0, x'' >= 0
shuff(z', z'') -{ 56 + 6·s'' + z'' }→ s9 :|: s9 >= 0, s9 <= 2 * s'' + 1 * (0 * 0) + 1 * z'', s'' >= 0, s'' <= 1 * z'' + 1 * (1 + 0 + 0), z'' >= 0, z' = 0
shuffle(z') -{ 21 + 47·z' + 26·z'2 + 16·z'3 }→ s8 :|: s8 >= 0, s8 <= 1 * (z' * z') + 1 * 0, z' >= 0
tail(z') -{ 1 }→ x :|: n >= 0, z' = 1 + n + x, x >= 0
tail(z') -{ 1 }→ 0 :|: z' = 0
head: runtime: O(1) [1], size: O(n1) [z'] app: runtime: O(n1) [1 + z'], size: O(n1) [z' + z''] null: runtime: O(1) [1], size: O(1) [1] tail: runtime: O(1) [1], size: O(n1) [z'] reverse: runtime: O(n2) [4 + 3·z' + 2·z'2], size: O(n1) [z'] shuff: runtime: O(n3) [20 + 47·z' + 6·z'·z'' + 26·z'2 + 16·z'3 + 3·z''], size: O(n2) [z'2 + z''] if: runtime: O(n3) [53 + 50·z'' + 6·z''·z2 + 28·z''2 + 16·z''3 + 6·z2], size: O(n2) [z''2 + z1 + 2·z2] shuffle: runtime: O(n3) [21 + 47·z' + 26·z'2 + 16·z'3], size: O(n2) [z'2] |